package com.shelpe.services.sinbad.repository.mongo;

import java.util.Date;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.mongo.BlackList;

public interface BlackListRepository extends PagingAndSortingRepository<BlackList, String> {

	BlackList findByUserID(long userID);

	Page<BlackList> findByCreateTimeAfterOrderByCreateTimeDesc(Date date, Pageable page);

	Page<BlackList> findByNickLikeOrderByCreateTimeDesc(String nick, Pageable page);

}
